package com.sjr.easy.chat.controller;

import com.sjr.easy.chat.business.UserBusiness;
import com.sjr.easy.chat.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AdminUserController {

    @Autowired
    private UserBusiness userBusiness;

    @GetMapping("/admin/getAllUser")
    public List<User> getAllUser() {
        return userBusiness.getAllUser();
    }


}
